package com.example.orderflow.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *  数据库操作接口
 */
@Mapper
public interface UserInfoMapper<T,P> extends BaseMapper<T,P> {

	/**
	 * 根据UserName更新
	 */
	 Integer updateByUserName(@Param("bean") T t,@Param("userName") String userName);


	/**
	 * 根据UserName删除
	 */
	 Integer deleteByUserName(@Param("userName") String userName);


	/**
	 * 根据UserName获取对象
	 */
	 T selectByUserName(@Param("userName") String userName);


}
